#include "cm0_uart.h"

void UART_Init(CMSDK_UART_TypeDef * UARTx, UART_InitTypeDef * pUART){
	uint32_t ctrl;
	
	ctrl = 0;
	ctrl |= pUART->UART_WorkCtrl;
	ctrl |= pUART->UART_IRQ;
	
	UARTx->BAUDDIV = pUART->UART_Bauddiv;
	UARTx->CTRL = ctrl;
}
